﻿@using BookShop.Site.Models
@model ListCategoryPublisherAuthor<BookShop.DTO.Author>
@{
    ViewBag.Title = "Tất cả Tác giả | BookShop Ngân Hà";
}

<ul class="breadcrumb">
    <li><a href="@Url.Action("Index", "Home")">Trang chủ</a></li>
    <li><a href="@Url.Action("ProductPage", "Home")">Sản phẩm</a></li>
    <li class="active">Tất cả Tác giả</li>
</ul>

<div class="row margin-bottom-40">
    @if (Model != null)
    {
        Html.RenderPartial("_CategorySidebar", new HomeViewModel { HasPriceSlider = true, BestSellerBookList = Model.BestsellerBooks, CategoryList = Model.Categories });
        <div class="col-md-9 col-sm-7">
            <h1>Danh mục Tác giả</h1>
            <div class="content-page">
                <ul>
                    @if (Model.ModelList != null)
                    {
                        foreach (var author in Model.ModelList)
                        {
                        <li>
                            <a href="@Url.Action("ProductPage", new { authorId = author.Id })">@author.Name</a>
                        </li>
                        }
                    }
                </ul>
            </div>
        </div>
    }
</div>
